# -*- coding:utf-8 -*-
'''
Created on 2012-2-25

@author: Administrator
'''

from os.path import abspath, dirname
_file_path = abspath(dirname(__file__))
from env_helper import init_env
init_env(debug=True, base_path=_file_path, logfile='%s/logs/hero_lobby.log' % _file_path, \
         dburi='mysql://root:123456@localhost:3306/hero', cacheuri='127.0.0.1:11211')

from global_vars import g_getcache
@g_getcache('testdb')
def helpme(a,b,c):
    return a+b+c

a = helpme(1,2,3)
print 'a=',a
b = helpme(1,2,3)
print 'b=',b
c = helpme(1,2,3)
print 'c=',c
#from gevent.server import StreamServer
#from lobby import lobby_process
#server = StreamServer(('0.0.0.0', 6000), lobby_process)
#server.serve_forever()
